import numpy as np
import scipy

def gen_filter_coeffs(numtaps, M, window_fn="hamming"):
    coeffs = scipy.signal.firwin(numtaps*M, cutoff=2.0/M, window="hamming")
    return coeffs

c = gen_filter_coeffs(64, 16)
np.savetxt("coeff.txt",c,delimiter="\n")
